#!/usr/bin/env node

const path = require("path");
const { runner } = require("hygen");

runner(process.argv.slice(2), {
  templates: path.join(__dirname, "_templates"),
  cwd: process.cwd(),
  logger: {
    log: (...args) => console.log(...args),
    ok: (...args) => console.log("✔", ...args),
    warn: (...args) => console.warn(...args),
  },
  debug: !!process.env.DEBUG,
  createPrompter: () => require("enquirer"),
  helpers: {
    // 这里可以添加自定义 helper 函数
  },
});
